//
//  HYLanguageService.h
//  JFBase
//
//  Created by victor lau on 2018/12/10.
//  Copyright © 2018年 Alan Wang. All rights reserved.
//

/*
 功能：处理语言切换，货币切换类型 （存于UserDefault中）
 
 */



#import <Foundation/Foundation.h>

//语言本地化
#define AppLanguage @"appLanguage"
#define KUserDefaultCurrency  @"KUserDefaultCurrency"

#define KNotify_Language_Change  @"KNotify_Language_Change"
#define KNotify_Currency_Change  @"KNotify_Currency_Change"



//Language
typedef NS_ENUM (NSUInteger,HYLanguageType) {
    HYLanguageTypeEnglish = 0,  //英文
    HYLanguageTypeChinese = 1, //中文
    HYLanguageTypeHK = 2 , //繁体
};

//currency
typedef NS_ENUM (NSUInteger,HYCurrencyType) {
    HYCurrencyTypeUSD = 0,  //美元
    HYCurrencyTypeCNY = 1, //人民币
    HYCurrencyTypeHKD = 2, //港元
};




NS_ASSUME_NONNULL_BEGIN

@interface HYLanguageService : NSObject


//支持简体与英文
+ (void)initHYLanguageShowType;

//支持简体与英文
+ (HYLanguageType)getHYLanguageShowType;

//注意：必须是客户手动设置语言类型时，才能调用此接口
+ (void)setHYLanguageShowType:(HYLanguageType)type;


//当前货币
+ (HYCurrencyType)getHYCurrencyShowType;

//保存当前货币
+(void)saveCurrencyType:(HYCurrencyType)type;

//请求头的语言类型
+(NSString *)httpHeadLanguage;

@end

NS_ASSUME_NONNULL_END
